﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDevice.ParamModel
{
    public class DeviceParam
    {
        public int file_id { get; set; }
        [Required(ErrorMessage = "file_code：代码必填！")]
        public string file_code { get; set; }
        [Required(ErrorMessage = "file_name：名称必填！")]
        public string file_name { get; set; }
        public string _folder_name { get; set; }
        public int _folder_id { get; set; }
        [Required(ErrorMessage = "folder_path：path必填！")]
        public string _folder_path { get; set; }
        public string file_note { get; set; }
        public int file_order { get; set; }
        public string qr_code { get; set; }
        public List<PriceParam> price { get; set; }
    }
    public class PriceParam
    {
        /// <summary>
        ///  价格名称
        /// </summary>
        public string price_name { get; set; }
        /// <summary>
        ///  分钟
        /// </summary>
        public int op_month { get; set; }
        /// <summary>
        ///  金额
        /// </summary>
        public decimal ori_price { get; set; }
    }
    public class ResltDevice: DeviceParam
    {
        public string create_time { get; set; }//创建时间
        public string create_name { get; set; }//创建人
        public string update_time { get; set; }//更新时间
        public string update_name { get; set; }//更新人
    }
}